package jp.gr.java_conf.ryz.summarize.android.model;

import java.io.Serializable;


public class Post implements Serializable
{
	private static final long serialVersionUID = 4414191538807070145L;
	private static final String FORMAT_TITLE = "%s : <style=\"color:#006400;\">%s</style> %s %s";
	private static final String FORMAT_MAIL = "[%s]";
	
	private String _number;
	private String _name;
	private String _date;
	private String _mail;
	private String _body;
	private boolean _isMain;
	
	
	public String getNumber()
	{
		return _number;
	}
	
	public void setNumber(int number)
	{
		_number = String.valueOf(number);
	}
	
	public String getName()
	{
		return _name;
	}
	
	public void setName(String name)
	{
		_name = name;
	}
	
	public String getDate()
	{
		return _date;
	}
	
	public void setDate(String date)
	{
		_date = date;
	}
	
	public String getMail()
	{
		return String.format(FORMAT_MAIL, _mail);
	}
	
	public void setMail(String mail)
	{
		_mail = mail;
	}
	
	public String getBody()
	{
		return _body;
	}
	
	public void setBody(String body)
	{
		_body = body;
	}
	
	public boolean isMain()
	{
		return _isMain;
	}
	
	public void setIsMain(boolean isMain)
	{
		_isMain = isMain;
	}
	
	public String getTitleHtml()
	{
		return String.format(FORMAT_TITLE, _number, _name, _date, _mail);
	}
}
